package com.woniuxy.cloud.carl.order.client;

import com.woniuxy.cloud.carl.order.client.param.*;
import com.woniuxy.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "expressManageClient",name = "order",path = "order")
public interface ExpressManageClient {

    @PostMapping("expressForUser")
    public Result addExpressForUser(@RequestBody AddExpressForUserParam param);

    @PostMapping("expressForStore")
    public Result addExpressForStore(@RequestBody AddExpressForStoreParam param);

    @PutMapping("setExpressState")
    public Result setExpressState(@RequestBody UpdateExpressParam param);

    @PutMapping("setTransState")
    public Result setTransState(@RequestBody UpdateTransParam param);

    @PostMapping("serviceLog")
    public Result addServiceLog(@RequestBody AddServiceLogParam param);

    @PutMapping("setServiceLog")
    public Result setServiceLog(@RequestBody SetServiceLogParam param);

//    @PostMapping("addServiceType")
//    Result addServiceType(@RequestBody AddServiceTypeParam param);
}
